﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarClass
{
    class SportCar: Car
    {
        public Double Speed { get; set; }

        public SportCar(Double speed, String number): base(number)
        {
            Console.WriteLine("создание спортивной машины");
            Speed = speed;
        }

        public void IsmenenieNomera()
        {
            EngineNumber = "45FO41";
            Console.WriteLine("новый номер {0}", EngineNumber);
        }
    }
}
